﻿@model Lion.WeiXin.Core.Models.WeChatUserModel
@{
    Layout = "~/Views/Shared/_AppLayout.cshtml";
}
@section ChildPageJs {
    <script src="/Scripts/WeChat/WeChatProductUnBindVipCard.js" type="text/javascript"></script>
}
<style>
    .mh-title {
        margin-top: 0px;
        font-size: 1.6em;
        font-weight: 200;
        text-align: center;
        display: block;
        word-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        background-color: #0e90d2;
        color: white;
    }

    .mh-content {
        padding-left: 1rem;
        padding-right: 1rem;
        color: #0e90d2;
    }
</style>
<div>
    <h2 class="mh-title">解除卡号绑定</h2>
</div>
<!--非会员用户跳转绑定会员卡-->
@if(Model==null)
{
<div data-role="fieldcontain">
    <h2 style="color: red">很抱歉，您的微信号尚未绑定会员卡</h2>
    <p><a href="/WeChatProduct/BindVipCard" rel="external" data-role="button" data-corners="false">立即绑定</a></p>
</div>
}
else
{
<form id="fmSave">
    <div data-role="fieldcontain">
        <div>
            <label for="Code">*卡号：</label>
            <input type="text" id="cardCode" name="cardCode" value="@Model.VipCardCode" readonly="true" />
             <input type="hidden" id="openid" name="openid" value="@Model.OpenId" />
        </div>
        <div>
            <label for="Password">*密 码：</label>
            <input type="password" id="password" name="password" placeholder="输入密码" />
        </div>
    </div>
    <div>
        <p id="msg"></p>
    </div>
    <div data-role="fieldcontain">
        <input type="button" id="btnSave" data-icon="check" data-corners="false" iconpos="left" data-inline="false" value="解 绑" />
    </div>
</form>
}


